package org.ytor.core.sqlflow.builder.support;

import java.util.Map;

/**
 * created by yangtong on 2025/8/7 22:24:21
 * <br/>
 * join 的 on条件 构造
 */
public class JoinOnBuilder extends ConditionBuilder {

    public JoinOnBuilder(Map<Object, String> tableAliases) {
        super(tableAliases);
    }

    @Override
    public String toSql() {
        String inner = super.toSql();
        return inner.isEmpty() ? "" : " ON " + inner + " ";
    }
}

